package be.vdabantwerpen.gow.entities;

import com.google.appengine.repackaged.org.joda.time.DateTime;
import java.io.Serializable;

public class Reply implements Serializable {
        private static final long serialversionUID = 1L;
	private Post post;
	private String user;
	private DateTime dateTime;
	private String content;

	public Reply(Post post, String user, DateTime dateTime, String content) {
		setPost(post);
		setUser(user);
		setDateTime(dateTime);
		setContent(content);
	}

	public String getUser() {
		return user;
	}

	private void setUser(String user) {
		this.user = user;
	}

	public DateTime getDate() {
		return dateTime;
	}

	private void setDateTime(DateTime dateTime) {
		this.dateTime = dateTime;
	}

	public String getContent() {
		return content;
	}
	
	public void setContent(String content) {
		this.content = content;
	}

	public Post getPost()
	{
		return post;
	}

	private void setPost(Post post)
	{
		this.post = post;
	}
	
	public void setContent(String content, DateTime dateTime) {
		this.content = content;
		setDateTime(dateTime);
	}
}
